﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Event_Planner.Models;
using Event_Planner.Filters;


namespace Event_Planner.Controllers
{

    [AllowAnonymous]
    public class HomeController : Controller
    {
       
        public ActionResult Index()
        {
           return View();
        }


        [OutputCache(Duration = int.MaxValue, VaryByCustom = "Cache.OutputCacheEventosGeneral")]
        [ChildActionOnly]
        public ActionResult EventosProximos()
        {
            Event_Planner.DataAccess.Eventos eventos = new Event_Planner.DataAccess.Eventos();
            
            return PartialView(eventos.EventosProximos());
        } 


    }
}
